package com.demo.mobile;

public enum MFrameEnumError implements IMError{
	APPID_FAIL_ERROR(1001,"缺少appid"),
	DEVICE_FAIL_ERROR(1002,"缺少deviceid"),
	LOGIN_FAIL_ERROR(1003,"登录验证失败"), 
	PAGE_PARAM1_ERROR(1004,"缺少分页参数page"),
	PAGE_PARAM2_ERROR(1005,"缺少分页参数limit"),
	PARAM_NOT_EXISTS(1006,"缺失必要参数");

	/** 错误编码 */
	private int errorCode;

	/** 错误信息 */
	private String errorMsg;
	
	/**
	 * 构造函数
	 */
	private MFrameEnumError(int errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	/**
	 * @return int 错误代码
	 */
	public int getErrorCode() {
		return errorCode;
	}

	/**
	 * @return String 错误信息
	 */
	public String getErrorMsg() {
		return errorMsg;
	}

}
